Skip to content

Add tests for build and version API v3 filters#12898

Draft
ericholscher wants to merge 1 commit intomainfrom
fix/api-filter-tests-8238
Draft

Add tests for build and version API v3 filters#12898
ericholscher wants to merge 1 commit intomainfrom
fix/api-filter-tests-8238

Conversation

@ericholscher
Copy link
Copy Markdown
Member

Summary

  • Add test coverage for the django-filters on builds and versions API v3 endpoints
  • Build filters tested: commit (exact match), running (custom boolean method that checks build state)
  • Version filters tested: slug (icontains), active, type, built
  • All 10 tests pass locally

Per @agjohnson in #8238: filters were added in #8142 but skipped test coverage.

Closes #8238

Test plan

  • All 10 new filter tests pass locally
  • Tests follow existing APIEndpointMixin pattern from other v3 test files
  • Tests cover both hit and miss cases for key filters

Made by AI

Add test coverage for the django-filters on the builds and versions
API endpoints:
- BuildFilter: commit (exact), running (custom method)
- VersionFilter: slug (icontains), active, type, built

Closes #8238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for build/version/project django filters

1 participant